package com.wolf.etl.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * @author sdyang
 * @date 2019/10/13 15:19
 **/
@TableInfo(value = "etl_rewrite_back")
public class EtlRewriteBackModel {

    @IdInfo
    private Long id;

    @FieldInfo(value = "etl_define_id")
    private Long etl_define_id;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    @FieldInfo("etl_table_id")
    private Long etl_table_id;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    @FieldInfo("status")
    private boolean status;

    @FieldInfo("column_name")
    private String column_name;

    @FieldInfo("column_value")
    private String column_value;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getColumn_name() {
        return column_name;
    }

    public void setColumn_name(String column_name) {
        this.column_name = column_name;
    }

    public String getColumn_value() {
        return column_value;
    }

    public void setColumn_value(String column_value) {
        this.column_value = column_value;
    }

    public Long getEtl_table_id() {
        return etl_table_id;
    }

    public void setEtl_table_id(Long etl_table_id) {
        this.etl_table_id = etl_table_id;
    }

    public Long getEtl_define_id() {
        return etl_define_id;
    }

    public void setEtl_define_id(Long etl_define_id) {
        this.etl_define_id = etl_define_id;
    }
}
